<template>
  <div class="cate-header">
      <div class="center">
        <input type="text" placeholder="请输入搜索关键词"
        @click="urlClick">
      </div>
  </div>
</template>

<script>
export default {
  name:'CateHeader',
 
  
  methods:{
    urlClick(){
      this.$router.push('/search');
    }
  }
}
</script>

<style scoped>
.cate-header{
  line-height: 44px;
  background-color: #f6f6f6;
  box-shadow: 0 1px 1px rgba(100,100,100,.1);
}
.cate-header .center{
  width: 100%;
  text-align: center;
}
.center input{
  width: 80%;
  line-height: 38px;
  border-radius:24px;
  padding-left: 18px;
  border: none;
}
.center input::placeholder{
  font-size: 14px;
}
</style>